package com.groupbuying.currency.producer.controller;

import com.groupbuying.currency.producer.connector.CustomerFeign;
import com.groupbuying.currency.producer.connector.OrderFeign;
import com.groupbuying.currency.producer.utils.RedisUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @anthor zmlmagic
 * @date 2019/1/7 9:26 AM
 * @company 蒙泰互联网公司
 * @des 测试controller
 **/


@Api("积分测试接口")
@RestController
@RequestMapping("/test")
public class TestController {
//    @Value("${test}")
//    private String profile;

    @Autowired
    private CustomerFeign customerFeign;

    @Autowired
    private OrderFeign orderFeign;

    @Autowired
    private RedisUtils redisUtils;

    //@Log
    @ApiOperation(value = "/getTest")
    @GetMapping("/getTest")
    @ResponseBody
    public String getTest() {
        return "ojbk";
    }

    @RequestMapping(value = "/getConnectorTest", method = RequestMethod.GET)
    @ResponseBody
    public String getConnector(){
        return this.orderFeign.thisTest();
    }
}
